getInsets

open fun getInsets(typeMask: Int): Insets(source)

Returns the insets of a specific set of windows causing insets, denoted by the typeMask bit mask of Types. When running on devices with API Level 29 and before, the returned insets are an approximation based on the information available. This is especially true for the IME type, which currently only works when running on devices with SDK level 23 and above.

Return

The insets.

Parameters

typeMask

Bit mask of Types to query the insets for.